package com.example.administrator.musicplayer;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class welcomeActivity extends Activity {
    String username;
    String password;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        Intent intent = this.getIntent();
        Bundle bundle = intent.getExtras();
        User user = (User)bundle.getSerializable("user");


        TextView t_username = (TextView)findViewById(R.id.t_username);
        TextView t_password = (TextView)findViewById(R.id.t_password);
        t_username.setText(user.getUsername());
        t_password.setText(user.getPassword());
    }
}
